價格:免費
更新日期:2019-03-07
檔案大小:2.5M
目前版本:1.1
版本需求:Android 4.0 以上版本
官方網站:mailto:joaoareias123@gmail.com
The application allows you to control an Arduino or Raspberry Pi based RC car over Bluetooth. This is done using a Bluetooth enabled Android phone.
***Warning***
Arduino Bluetooth Car does not search for devices by bluetooth. First you have to pair through the settings of your mobile phone.
If you have any problems, you can contact me and I'll help you.
Enjoy
You can use HC-05 or HC-06
Code:
void loop() {
if (bluetooth.available()) { // Checks whether data is comming from the serial port
comando = "";
while (bluetooth.available())
{
char x = bluetooth.read();
comando += x;
}
if (comando == "f")
front();
else if (comando == "e")
left();
else if (comando == "r")
right();
else if (comando == "p")
stopCar();
else if (comando == "b")
back();
else if (comando == "m")
more();
}